Gradient Techniques in AI